import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    AutoImport({
      include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/],
      imports: [
        "vue",
        "vue-router",
        "@vueuse/core",
        {
          "vue-router": [["*", "VueRouter"]],
          axios: [["default", "axios"]],
        },
      ],
      dts: false,
      eslintrc: {
        enabled: true,
      },
    }),
    Components({
      include: [/\.vue$/, /\.vue\?vue/],
      dts: false,
      version: 3,
    }),
  ],
});
